package k2_oop.p9_collection.demo04;

import java.util.ArrayList;

public class TestDemo4 {
    public static void main(String[] args) {

        ArrayList<Father> fathers = new ArrayList<>();
        fathers.add(new Son("jerry",10));
        ArrayList<Father> fatherss = new ArrayList<>(fathers);

        System.out.println(fatherss);

    }
}
